package main

import "fmt"

func cal() {
	var sum int16
	var total int = 0
	for i := 0; i < 101; i++ {
		total += i
		if i%9 == 0 {
			sum += 1
		}
	}
	fmt.Printf("9的倍数有%v个\n", sum)
	fmt.Printf("总和为%v", total)
}
func travseString() {
	var str string = "what you want to do?"
	for i := 0; i < len(str); i++ {
		fmt.Printf("%c", str[i])
	}
}
func main() {
	cal()
}
